Welcome![Sign In][Sign Up]
Location:
Search - draw line with mouse in java

Search list

[Graph DrawingDrawLine

Description: 用bresenham,dda,midpoint三种算法实现画直线,鼠标可在屏幕上取点画直线-With bresenham, dda, midpoint algorithm painting of three straight, the mouse can check on the screen straight stipple
Platform: | Size: 18432 | Author: 刘提 | Hits:

[JSP/Javaaaa

Description: 1) 在图形界面中绘制二维的坐标系统,其中x轴位于绘图区正中,y轴位于绘图区的最左边。 2) 根据下面试验数据,在1)题的坐标系统中绘制数据点,每个数据点用一个小叉号表示,并在叉号边以(x,y)的格式标示出数据点的坐标数值,最后用折线连接相邻的数据点。 数据点序号 x坐标 y坐标 1 0 20 2 50 -30 3 100 16 3 150 126 5 200 164 3) 在2)题的基础上设计界面接收用户输入的实验数据,绘制数据点和实验曲线。 4) 编写程序跟踪用户的鼠标,并时刻把鼠标的位置显示出来。 5) 编写图形界面的Java程序响应鼠标单击和键盘事件,从鼠标单击的位置开始横向显示用户键入的字符,若鼠标双击则清空屏幕。 -1) In drawing two-dimensional graphical interface in the coordinate system in which the x-axis is located in the middle of the plot area, y-axis in the drawing area to the left. 2) According to the following test data, in 1) Title of the coordinate system to draw data points, each data point with a small cross sign indicates, and Crossed edges to (x, y) data points marked out the format of coordinate values​ ​ , the final line connecting adjacent data points. Number of data points x coordinate y coordinate 1020 250-30 310 016 3150126 5200164 3) 2) based on the theme of the design interface to receive user input of experimental data, plot the data points and the experimental curve. 4) write a program to track the user s mouse, and always put the mouse position is displayed. 5) write a Java GUI program to respond to mouse clicks and keyboard events, starting from the position of the mouse click the user key landscape Into the character, if the mouse double-clic
Platform: | Size: 19456 | Author: 刘毅 | Hits:

CodeBus www.codebus.net